package com.bookmall.member.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.bookmall.common.entity.MyPageEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 登录日志对象 member_login_log
 *
 * @author 胡菜鸡
 * @date 2022-04-02
 */
@Data
@ToString
@TableName("member_login_log")
public class MemberLoginLog extends MyPageEntity
{
    private static final long serialVersionUID = 1L;

    /** id（会员登录日志） */
    private String id;

    /** 会员id */
    @Excel(name = "会员id")
    private Long memberId;

    /** 登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;

    /** 登录ip */
    @Excel(name = "登录ip")
    private String ip;

    /** 登录城市 */
    @Excel(name = "登录城市")
    private String city;

    /** 登录类型（0web，1app） */
    @Excel(name = "登录类型", readConverterExp = "0=web，1app")
    private Long loginType;
}
